﻿<Window x:Class="CECB.Project_Questions_Window_Update"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Project_Questions_Window_Update" 
        xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
           
        WindowStartupLocation="CenterScreen"   Background="#AA000000" 
        AllowsTransparency="True" WindowStyle="None" WindowState="Maximized"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">



    <Window.Resources>
        <Storyboard x:Key="drop">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="groupBox">
                <EasingDoubleKeyFrame KeyTime="0" Value="0.02"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1.194">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="groupBox">
                <EasingDoubleKeyFrame KeyTime="0" Value="-120"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="23.75">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <BackEase EasingMode="EaseOut" Amplitude="-3"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>

    <Grid Height="446" Width="914">
        <Rectangle Margin="0,12,0,-59" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>

        <Grid Margin="-11,16,21,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="53*" />
                <RowDefinition Height="408*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="40*" />
                <ColumnDefinition Width="544*" />
                <ColumnDefinition Width="320*" />
            </Grid.ColumnDefinitions>
            <TextBlock Height="55" HorizontalAlignment="Left" Margin="5,0,0,0" Name="textBlock1" Text="Update Project Impacts" VerticalAlignment="Top" FontSize="35" Foreground="White" FontStyle="Italic" FontWeight="ExtraBold" Width="auto" Grid.Column="1" Grid.RowSpan="2" />

            <StackPanel Grid.Column="1" Grid.Row="1" Height="auto" HorizontalAlignment="Left" Name="stackPanel1" VerticalAlignment="Top" Width="544" Orientation="Vertical" Margin="0,10,0,0">
                <WrapPanel Orientation="Horizontal" Height="32">
                    <TextBlock Height="35" Name="textBlock2" Text="   Select a project"   FontSize="20" Foreground="White"  Width="200" />
                    <toolkit:AutoCompleteBox Name="ProjectAutocompleteTextBox"  Width="270" Margin="60,0,0,0" Height="30"  ValueMemberPath="proj_reference"  FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True"  SelectionChanged="ProjectAutocomplete_SelectionChanged" FontSize="18" Background="#FFF0F0F0" Opacity="1" HorizontalAlignment="Center" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2">
                        <toolkit:AutoCompleteBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding Path=proj_reference}"/>
                                    <TextBlock Text=" - "/>
                                    <TextBlock Text="{Binding Path=proj_name}"/>
                                </StackPanel>
                            </DataTemplate>
                        </toolkit:AutoCompleteBox.ItemTemplate>
                    </toolkit:AutoCompleteBox>
                </WrapPanel>
                <!--<WrapPanel Name="ProjectDetailsWrapPanel" Orientation="Vertical" Height="auto">
                <WrapPanel Height="32">
                    <TextBlock Height="25" Name="textBlock3" Text="Project Reference"   FontSize="20" Foreground="White"  Width="200" />
                    <Label Content="{Binding Path=proj_reference}" Height="32" FontSize="14" Name="labelProjectReference" Margin="50,0,0,0" Width="auto" VerticalAlignment="Top"  />
                </WrapPanel>
                <WrapPanel Height="32">
                    <TextBlock Height="25" Name="textBlock4" Text="Project Name"   FontSize="20" Foreground="White"  Width="200" />
                    <Label Content="{Binding Path=proj_name}" Height="32" FontSize="14" Name="label5" Margin="50,0,0,0" Width="auto" VerticalAlignment="Top"  />
                </WrapPanel>
                <WrapPanel Height="32">
                    <TextBlock Height="25" Name="textBlock6" Text="Project Team"   FontSize="20" Foreground="White"  Width="200" />
                    <Label Content="{Binding Path=proj_team}" Height="32" FontSize="14" Name="label6" Margin="50,0,0,0" Width="auto" VerticalAlignment="Top"  />
                </WrapPanel>
                <WrapPanel Height="32">
                    <TextBlock Height="25" Name="textBlock5" Text="Project Category"   FontSize="20" Foreground="White"  Width="200" />
                    <Label Content="{Binding Path=proj_subCategory}" Height="32" FontSize="14" Name="label3" Margin="50,0,0,0" Width="auto" VerticalAlignment="Top"  />
                </WrapPanel>

            </WrapPanel>-->
                <WrapPanel Name="ProjectDetailsWrapPanel" Margin="0,0,0,0" Orientation="Vertical" Height="auto" Background="DimGray" OpacityMask="{x:Null}">
                    <WrapPanel Height="32" Margin="10,0,0,0">
                        <TextBlock Height="29" Name="textBlock3" Text="Project Reference: "    TextAlignment="Right"   FontSize="16" Foreground="White"  Width="240"  Background="#FF3E3832" VerticalAlignment="Stretch" />
                        <Label Content="{Binding Path=proj_reference}" Height="29" FontSize="14" Foreground="Black" Name="labelProjectReference" Margin="10,0,0,0" Width="270" VerticalAlignment="Top" Background="#FFF0F0F0"  BorderBrush="#FFB4B4B4" BorderThickness="1" />
                    </WrapPanel>
                    <WrapPanel Height="32"  Margin="10,0,0,0"  >
                        <TextBlock Height="29" Name="textBlock4" Text="Project Name: " TextAlignment="Right"  FontSize="16" Foreground="White"  Width="240" Background="#FF3E3832" VerticalAlignment="Stretch" />
                        <Label Content="{Binding Path=proj_name}" Height="29" FontSize="14" Foreground="Black" Name="label5" Margin="10,0,0,0" Width="270" VerticalAlignment="Top"  Background="#FFF0F0F0" BorderBrush="#FFB4B4B4" BorderThickness="1" />
                    </WrapPanel>
                    <WrapPanel Height="32"  Margin="10,0,0,0"  >
                        <TextBlock Height="29" Name="textBlock6" Text="Project Team: "  TextAlignment="Right" FontSize="16" Foreground="White"  Width="240" Background="#FF3E3832" VerticalAlignment="Stretch" />
                        <Label Content="{Binding Path=proj_team}" Height="29" FontSize="14" Foreground="Black" Name="label6" Margin="10,0,0,0" Width="270" VerticalAlignment="Top" Background="#FFF0F0F0" BorderBrush="#FFB4B4B4" BorderThickness="1" />
                    </WrapPanel>
                    <WrapPanel Height="32"  Margin="10,0,0,0"  >
                        <TextBlock Height="29" Name="textBlock5" Text="Project Category: " TextAlignment="Right"  FontSize="16" Foreground="White"  Width="240" Background="#FF3E3832" VerticalAlignment="Stretch" />
                        <Label Content="{Binding Path=TEAMS.team_name}" Height="29" FontSize="14" Foreground="Black" Name="label3" Margin="10,0,0,0" Width="270" VerticalAlignment="Top" Background="#FFF0F0F0" BorderBrush="#FFB4B4B4" BorderThickness="1" />
                    </WrapPanel>
                </WrapPanel>
                <WrapPanel Name="AddQs" Margin="0,20,0,0" Orientation="Vertical" Height="auto">

                    <WrapPanel Background="DimGray"></WrapPanel>
                    <WrapPanel>
                        <TextBlock Height="25" Name="textBlock12" Text="Activities to update..."   FontSize="18" Foreground="Black"   Width="170" TextAlignment="Right" />
                    </WrapPanel>
                    <WrapPanel Width="530">
                        <TextBox Grid.Column="2" Width="524" Margin="0,10,0,0" Height="86" TextWrapping="Wrap" AcceptsReturn="True" Name="textBoxImpactUpdate" VerticalAlignment="Top" FontSize="15" Background="#FFF0F0F0" Opacity="1" HorizontalAlignment="Center" Foreground="Black" />

                    </WrapPanel>
                </WrapPanel>
            </StackPanel>
            <StackPanel Grid.Column="2" Height="432" Name="stackPanel2" VerticalAlignment="Bottom" Orientation="Vertical" Margin="1,0,0,-37" Grid.RowSpan="2">
                <WrapPanel Orientation="Vertical" >
                    <WrapPanel Background="Transparent" Orientation="Vertical">
                        <TextBlock Height="25" Name="textBlock23" Margin="10,0,0,0" Text="Select Phase: "   FontSize="18" Foreground="White"  Width="319" TextAlignment="Left" />
                        <ComboBox Height="30" Name="comboBoxComponents" Width="300" Margin="0,0,0,0" SelectionChanged="comboBoxComponents_SelectionChanged">

                        </ComboBox>
                    </WrapPanel>
                </WrapPanel>

                <GroupBox x:Name="groupBox" Margin="0,0,0,0" BorderThickness="0" MaxHeight="360" Height="320">
                    <GroupBox.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </GroupBox.RenderTransform>
                    <WrapPanel MaxWidth="350" Margin="0,10,0,0" Height="300">
                        <ListBox x:Name="listBoxActivities" Visibility="Hidden" ScrollViewer.CanContentScroll="True"  ItemsSource="{Binding }"  ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Height="260" Background="DimGray" Width="300" SelectionChanged="listBoxActivities_SelectionChanged">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <WrapPanel Background="#FF3E3832" MaxWidth="300">
                                        <StackPanel Orientation="Horizontal" MaxWidth="300">
                                            <!--<CheckBox IsChecked="{Binding Deleteable, Mode=TwoWay}" Name="CheckBoxActivity" VerticalAlignment="Center" HorizontalAlignment="Left"  />-->
                                            <WrapPanel Orientation="Vertical" MaxWidth="300">
                                                <Label Content="{Binding impt_name }" Height="30" Width="300" Foreground="White"   HorizontalAlignment="Left" FontSize="15" />
                                                <!--Label Content="{Binding impt_reference}" Height="22" Width="300" Foreground="White"   HorizontalAlignment="Right" FontSize="10" /> -->

                                            </WrapPanel>
                                        </StackPanel>
                                    </WrapPanel>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </WrapPanel>
                </GroupBox>


            </StackPanel>
            <WrapPanel Orientation="Horizontal" Margin="0,326,14,6" Grid.Column="1" Grid.Row="1">
                <StackPanel Name="stackPanel14" Orientation="Horizontal" Margin="300,3,0,0" HorizontalAlignment="Right">
                    <Button Background="{x:Null}" BorderBrush="White" Click="SaveButton_Click" Height="44" Margin="2,0" Name="SaveButton" Width="98">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="13*" />
                                <RowDefinition Height="23*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Image Height="32" Margin="2,2,2,3" Source="images\save.png" Width="32" Grid.RowSpan="2" />
                            <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2,10,2,11" VerticalAlignment="Center" Grid.RowSpan="2">
                                <TextBlock Margin="0" Padding="0" Text="Update" TextWrapping="NoWrap" Foreground="White" />
                            </StackPanel>
                        </Grid>
                    </Button>
                    <Button Background="{x:Null}" BorderBrush="White" Click="CloseButton_Click" Height="44" Margin="2,0" Name="CloseButton" Width="98">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>
                            <Image Grid.Column="0" Height="32" Margin="2" Source="images\close.png" Width="32" />
                            <StackPanel Grid.Column="1" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Center">
                                <TextBlock Margin="0" Padding="0" Text="Delete" TextWrapping="NoWrap" Foreground="White" />
                            </StackPanel>
                        </Grid>
                    </Button>
                </StackPanel>
            </WrapPanel>
        </Grid>


        <Grid HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,20,15,0">
            <Image Height="32" Margin="2" Source="/CECB;component/images/closeblack.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
        </Grid>

    </Grid>




</Window>